import request from '@/utils/request'

// 查询安装包管理列表
export function listAttachments(query) {
  return request({
    url: '/attachments/attachments/list',
    method: 'get',
    params: query
  })
}

export function listNoPage(query) {
  return request({
    url: '/attachments/attachments/all',
    method: 'get',
    params: query
  })
}

// 查询安装包管理详细
export function getAttachments(id) {
  return request({
    url: '/attachments/attachments/' + id,
    method: 'get'
  })
}

// 新增安装包管理
export function addAttachments(data) {
  return request({
    url: '/attachments/attachments',
    method: 'post',
    data: data
  })
}

// 修改安装包管理
export function updateAttachments(data) {
  return request({
    url: '/attachments/attachments',
    method: 'put',
    data: data
  })
}

// 删除安装包管理
export function delAttachments(id) {
  return request({
    url: '/attachments/attachments/' + id,
    method: 'delete'
  })
}
